home *** CD-ROM | disk | FTP | other *** search
- Program RIPDoor;
-
- {$F+}
-
- { RipDoor (RipDoor) - Copyright (C) 1995 by InterProgramming }
- { All rights reserved. }
- { Version 1.21 - For distribution with RipLink. }
- { FREE to all registered RipLink users. }
-
- { This is a sample program to show the use of RIPlink. RIPlink is a }
- { standalone product and requires the use of the DDPlus kit. }
-
- { This sample works with the DDPlus Kit. }
-
- { This example displays a simple screen to the user composed of various }
- { things that RIPscrip supports. Then it will wait for a character and then }
- { display the RIP file, CITY.RIP. We've provided CITY.RIP as a convenience }
- { to you. }
-
-
- uses
- Dos, Crt, DDPlusR, Elog, RIPlink;
-
- Var
- ch : char;
-
- Procedure Header;
- const
- test : fpt = (146,73,36,146,73,36,146,73);
- t2 : fpt = (127,159,231,227,235,141,189,254);
- var
- bla : boolean;
- begin
- if Graphics=5 then
- begin
- RIP^.RipResetWindows;
- {good idea at beginning of every scene}
- RIP^.RipSetPalette(0,1,2,3,4,5,7,20,56,57,58,59,60,61,62,63);
- {define the color palette - this is the default setting}
- RIP^.RipTextWindow(1,8,80,20,true,0);
- {define a text window}
- RIP^.RipButtonStyle(0,0,2,768,3,15,0,15,8,7,0,0,15,7);
- {define a button style}
- RIP^.RipWriteMode(0);
- {set the write mode}
- RIP^.RipColor(12);
- {set the drawing color}
- RIP^.RipLineStyle(0,0,3);
- {set the line style}
- RIP^.RipFontStyle(3,0,2);
- {set the font type and style (Font 2)}
- RIP^.RipTextXY(10,4,'DDplus/7 - World''s Most Popular Doorkit');
- RIP^.RipColor(14);
- RIP^.RipTextXY(14,9,'DDplus/7 - World''s Most Popular Doorkit');
- RIP^.RipColor(11);
- RIP^.RipTextXY(18,14,'DDplus/7 - World''s Most Popular Doorkit');
- RIP^.RipColor(10);
- RIP^.RipTextXY(22,19,'DDplus/7 - World''s Most Popular Doorkit');
- RIP^.RipColor(13);
- RIP^.RipTextXY(26,25,'DDplus/7 - World''s Most Popular Doorkit');
- RIP^.RipColor(12);
- RIP^.RipLoadIcon(10,100,0,true,'computer.icn');
- RIP^.RipPutImage(70,100,0);
- {copy image from clipboard - happens to be icon because of last command}
- RIP^.RipFillPattern(test,9);
- {define a fill pattern - see const above}
- RIP^.RipBar(250,100,450,150);
- RIP^.RipFillPattern(test,1);
- {define a fill pattern - see const above}
- RIP^.RipColor(9);
- RIP^.RipBar(450,200,639,320);
- RIP^.RipFillPattern(t2,6);
- RIP^.RipBar(250,175,450,250);
- RIP^.RipButtonStyle(0,0,2,1038,0,15,0,15,8,9,0,0,0,13);
- RIP^.RipPixel(0,4);
- RIP^.RipButton(50,180,200,260,0,0,'','Button','B');
- Sread_char(ch);
- RIP^.RipResetWindows; {reset everything again}
- bla := RIP^.DisplayRIPfile('city.rip'); {display the RIP file CITY.RIP}
- RIP^.RipButtonStyle(0,0,2,1038,0,15,0,15,8,9,0,0,0,13);
- RIP^.RipPixel(0,4);
- RIP^.RipButton(50,180,200,260,0,0,'','Button','B');
- end;
- if Graphics=3 then
- begin
- Sclrscr;
- Speedread(ch);
- Swriteln(' ');
- Set_Color(12,0);
- SwriteXY(1,1,'Press any Key >');
- Sread_char(ch); {Wait for a character}
- SwriteXY(1,2,'Ansi Display in DDplusR 7.0');
- Set_Color(14,5);
- Swrite(' Test 1 ');
- Set_Color(11,0);
- SwriteXY(11,11,'Press any Key >');
- Sread_char(ch); {Wait for a character}
- Set_Color(2,0);
- SwriteXY(12,12,'Ansi Display in DDplusR 7.0');
- Set_Color(5,0);
- SwriteXY(22,23,'Press any Key >');
- end;
- end;
-
- Begin {main block}
- SaveExitProc:=Exitproc;
- ExitProc:=@MyExit1;
- INITDOORDRIVER('RIP.CTL');
- Header;
- Sread_char(ch); {Wait for a character}
- End.
-